<admintpl file="header"/>
<link rel="stylesheet" href="__PUBLIC__/css/jquery.datetimepicker.css">
<link rel="stylesheet" href="__PUBLIC__/css/act.css">
<link rel="stylesheet" href="__PUBLIC__/css/main.css">
<style>
    .pagehtml .num, .pagehtml .current {
        display: inline-block;
        width:30px;
        height: 30px;
        text-align: center;
        line-height: 30px;
        border: 1px solid #eeeeee;
        border-right: none;
    }
    .pagehtml a:nth-last-child(2),.pagehtml span:nth-last-child(1) {
        border-right: 1px solid #eeeeee;
    }
    .pagehtml .current {
        color: #ff0000;
    }
    td .seeDetailBtn {
        color: #ff0000;
        visibility: hidden;
    }
    tr:hover .seeDetailBtn {
        visibility: visible;
    }
</style>
</head>
<body>
<div class="manage">
    <span><a href="{:U('Package/index')}">运营管理</a></span>
</div>
<div class="act_main"><a href="{:U('Package/index')}">运营工具</a>
</div>
<div class="wrap">
    <div class="act_title">
        <div class="act_left">
            <span class="act_all">短链接</span>
            <span class="ac_color">（{$data.count}个短链接)</span>
        </div>
        <div class="act_right">
            <ul>
                <li><a href="{:U('shortlink/add')}"><span>添加短链接</span></a></li>
            </ul>
        </div>
    </div>
    <table cellpadding="2" cellspacing="0" width="80%" align="center" id="timeDesc" class="table table-hover table-striped">
        <thead>
        <tr role="row" class="tablesorter-headerRow">
            <th style="width: auto;padding: 0 10px;">短链接名称</th>
            <th></th>
            <th><a href="#" class="" id="actid">原链接</a></th>
            <th>短链接</th>
            <th>创建时间</th>
            <th>创建ID</th>
        </tr>
        </thead>
        <tbody>
        <?php if(isset($data['list'])){ ?>
            <foreach name="data['list']" item="vo">
                <tr>
                    <td>{$vo.title}</td>
                    <td> <a class="seeDetailBtn" href="{:U('shortlink/view', ['id' => $vo['id']])}">查看</a></td>
                    <td>{$vo.url_long}</td>
                    <td>{$vo.url_short}</td>
                    <td>{$vo.created_at}</td>
                    <td>{$vo.showid}</td>
                </tr>
            </foreach>
        <?php } ?>
        </tbody>
    </table>
    <div class="pagehtml" style="text-align: right;">{$pageHtml}</div>
</div>
</body>
</html>